import request from '@/utils/request'

// 查询马丁策略明细列表
export function listDetail(query) {
  return request({
    url: '/trader/detail/list',
    method: 'get',
    params: query
  })
}

// 查询马丁策略明细详细
export function getDetail(mdDetailId) {
  return request({
    url: '/trader/detail/' + mdDetailId,
    method: 'get'
  })
}

// 新增马丁策略明细
export function addDetail(data) {
  return request({
    url: '/trader/detail',
    method: 'post',
    data: data
  })
}

// 修改马丁策略明细
export function updateDetail(data) {
  return request({
    url: '/trader/detail',
    method: 'put',
    data: data
  })
}

// 删除马丁策略明细
export function delDetail(mdDetailId) {
  return request({
    url: '/trader/detail/' + mdDetailId,
    method: 'delete'
  })
}
